package com.yanqu.road.entity.enums.activity.jiuzhou;

/**
 * 游戏阶段类型
 */
public enum eJiuZhouGameStageType {

    WaitMatch("数据初始化，等待匹配", 0),

    Prepare("战前准备期", 1),

    ChooseSkillId3("选锦囊", 2),

    Battle("战斗中", 3),

    End("战斗结束", 4),

    ;

    private String name;

    private int intValue;

    eJiuZhouGameStageType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }

    public static eJiuZhouGameStageType forValue(int value) {
        for (eJiuZhouGameStageType type : eJiuZhouGameStageType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }
}
